package git.bankview.wl.report;

import java.util.*;
import java.sql.*;
import java.io.*;

import laya.semi.process.*;

import git.bankview.sl.db.*;
import git.bankview.sl.report.ReportCommon;
import git.bankview.sl.report.ReportScheduler;

import org.apache.log4j.Logger;

public class ReportSchdAppender
	implements IGenericClassActivity
{
	private static Logger log = Logger.getLogger(ReportSchdAppender.class);
	
	public void execute(IProcessContext oCtx)
		throws Exception
	{
		String[] vParamFieldName = oCtx.getActivityParameter().split(":");
		Integer oSchdid = (Integer)oCtx.getField("schdid");
		ReportScheduler oScheduler = (ReportScheduler)oCtx.getField(vParamFieldName[0]);
		oScheduler.addSchedule(oSchdid.intValue());
	}
}
